var arr = [12, 34, 32, 89, 4];

var minValue = arr.sort((a, b) => a - b).shift();

console.log(minValue);